package com.huike.clues.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huike.clues.domain.TbRulePool;
import com.huike.clues.domain.dto.TbRulePoolDTO;
import com.huike.clues.service.TbRulePoolService;
import com.huike.clues.mapper.TbRulePoolMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 93238
* @description 针对表【tb_rule_pool(线索池规则)】的数据库操作Service实现
* @createDate 2023-10-12 06:35:46
*/
@Service
@RequiredArgsConstructor
public class TbRulePoolServiceImpl extends ServiceImpl<TbRulePoolMapper, TbRulePool>
    implements TbRulePoolService{

    private final TbRulePoolMapper tbRulePoolMapper;



    /**
     * 查询不同类型线索池
     * @param type
     * @return
     */
    @Override
    public TbRulePool selectTbRulePoolType(String type) {
        return tbRulePoolMapper.selectTbRuleRoolType(type);
    }

    /**
     * 修改线索池规则
     * @param tbRulePoolDTO
     */
    @Override
    public void updateTbRulePool(TbRulePoolDTO tbRulePoolDTO) {
        tbRulePoolMapper.updateTbRulePool(tbRulePoolDTO);
    }
}




